package com.appistry.management;

import java.net.InetAddress;

import com.appistry.api.rest.domain.Credentials;
import com.appistry.api.util.Version;



public class FabricManagerClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception{
//		System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
//		System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
//		System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header", "debug");
//		System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "debug");

		
//		FabricManager mgr = new FabricManager("fabric-admin", "fabric-admin", "worker00", 16443);
//		Credentials c = new Credentials("fabric-admin", "fabric-admin");
//		InetAddress address = InetAddress.getByName("worker00");
		FabricManager mgr = new FabricManager("fabric-admin","fabric-admin", "worker00", true, Version.CLOUDIQ_43);
		for(Worker w : mgr.getFabric().getWorkers()){
			System.out.println(w.getIpAddress());
		}
		 
	}

}
